package com.vip;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tianlianyin
 * @date 2024/11/12
 */
@SpringBootApplication
@Slf4j
@RestController
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        log.info(
                """
                        ---------------------------------------------------------------------------
                        项目地址：    http://localhost:{}/api
                        接口文档地址： http://localhost:{}/api/doc.html
                        """, 86,86
        );
    }

    @GetMapping("/")
    public String hello() {
        return "hello world";
    }
}
